
a = input("请您输入一个数字：")
a =int(a)
s =1
while s<=a:
    for i in range(1,s+1):
        print(i,"*",s,"=",s*i," ",end=" ")
    print("\n")
    s = s+1
